/*     */ package com.yss.sofa.cml.design;
/*     */ 
/*     */ import com.yss.sofa.cml.LineBox;
/*     */ import com.yss.sofa.cml.LinePen;
/*     */ 
/*     */ public class DesignLineBox
/*     */   implements LineBox
/*     */ {
/*     */   private static final long serialVersionUID = 1L;
/*     */   protected LinePen pen;
/*     */   protected LinePen topPen;
/*     */   protected LinePen leftPen;
/*     */   protected LinePen rightPen;
/*     */   protected LinePen bottomPen;
/*     */ 
/*     */   public DesignLineBox(LinePen topPen, LinePen rightPen, LinePen bottomPen, LinePen leftPen)
/*     */   {
/*  25 */     this.topPen = topPen;
/*  26 */     this.rightPen = rightPen;
/*  27 */     this.bottomPen = bottomPen;
/*  28 */     this.leftPen = leftPen;
/*     */   }
/*     */ 
/*     */   public DesignLineBox(LinePen pen)
/*     */   {
/*  36 */     this.pen = pen;
/*     */   }
/*     */ 
/*     */   public DesignLineBox()
/*     */   {
/*     */   }
/*     */ 
/*     */   public LinePen getPen()
/*     */   {
/*  45 */     return this.pen;
/*     */   }
/*     */ 
/*     */   public LinePen getTopPen()
/*     */   {
/*  50 */     return this.topPen;
/*     */   }
/*     */ 
/*     */   public LinePen getLeftPen()
/*     */   {
/*  55 */     return this.leftPen;
/*     */   }
/*     */ 
/*     */   public LinePen getRightPen()
/*     */   {
/*  60 */     return this.rightPen;
/*     */   }
/*     */ 
/*     */   public LinePen getBottomPen()
/*     */   {
/*  65 */     return this.bottomPen;
/*     */   }
/*     */ 
/*     */   public void setPen(LinePen pen) {
/*  69 */     this.pen = pen;
/*     */   }
/*     */ 
/*     */   public void setTopPen(LinePen topPen) {
/*  73 */     this.topPen = topPen;
/*     */   }
/*     */ 
/*     */   public void setLeftPen(LinePen leftPen) {
/*  77 */     this.leftPen = leftPen;
/*     */   }
/*     */ 
/*     */   public void setRightPen(LinePen rightPen) {
/*  81 */     this.rightPen = rightPen;
/*     */   }
/*     */ 
/*     */   public void setBottomPen(LinePen bottomPen) {
/*  85 */     this.bottomPen = bottomPen;
/*     */   }
/*     */ 
/*     */   public DesignLineBox clone() {
/*  89 */     DesignLineBox clone = null;
/*     */     try {
/*  91 */       clone = (DesignLineBox)super.clone();
/*     */     } catch (CloneNotSupportedException e) {
/*  93 */       throw new RuntimeException(e);
/*     */     }
/*  95 */     if (this.pen != null) {
/*  96 */       clone.pen = this.pen.clone();
/*     */     }
/*  98 */     if (this.topPen != null) {
/*  99 */       clone.topPen = this.topPen.clone();
/*     */     }
/* 101 */     if (this.leftPen != null) {
/* 102 */       clone.leftPen = this.leftPen.clone();
/*     */     }
/* 104 */     if (this.rightPen != null) {
/* 105 */       clone.rightPen = this.rightPen.clone();
/*     */     }
/* 107 */     if (this.bottomPen != null) {
/* 108 */       clone.bottomPen = this.bottomPen.clone();
/*     */     }
/* 110 */     return clone;
/*     */   }
/*     */ }

/* Location:           X:\repository\com\yss\sofa\cml\cml-api\1.1.0\cml-api-1.1.0.jar
 * Qualified Name:     com.yss.sofa.cml.design.DesignLineBox
 * JD-Core Version:    0.6.0
 */